package demo;

interface ITestable {
    void test();
}

class ITE implements ITestable {
    @Override
    public void test() {
        System.out.println("test().....");
    }
}

public class Test4 {

    public static void main(String[] args) {
        new Comparable<ITE>(){
            @Override
            public int compareTo(ITE o) {
                return 0;
            }
        };
    }
    public static void main3(String[] args) {
        ITestable it = new ITE();
        it.test();
    }
    public static void main1(String[] args) {
        //ITestable iTestable = new ITestable();
        ITestable it = new ITestable(){
            @Override
            public void test() {
                System.out.println("test()........");
            }
        };

        it.test();
    }
}